/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package exceptions;

import token.Token;

/**
 *
 * @author Fabricio
 */
public class StringMauFormadaException extends Exception {

    /**
     * Creates a new instance of <code>StringMauFormadaException</code> without detail message.
     */
    public StringMauFormadaException() {
    }


    /**
     * Constructs an instance of <code>StringMauFormadaException</code> with the specified detail message.
     * @param msg the detail message.
     */
    public StringMauFormadaException(Token token) {
        super("Erro de Overflow --- Numero: " + token.getValor() + " --- Linha: " + token.getLinha());
    }
}
